<?php
require_once("includes/config.php");
if (!$_SESSION['User']  || $_SESSION['User']->rid != '1')
{
$_SESSION['User']=null;
	$smarty->assign('error',$msg_mustlogin);
	$smarty->display('tpls/index.tpl');
	die();
} 
$Security->GET_XSS();
$Security->Injection();
///
$content=$smarty->fetch('tpls/admin-dashboard.tpl');
$smarty->assign('content',$content);
$smarty->assign('username',$_SESSION['User']->username);
$smarty->display('tpls/main.tpl');

?>